package org.chen.common.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "chen")
public class ChenConfig {
    // 验证码类型
    private static String captchaType;
    /** 获取地址开关 */
    private static boolean addressEnabled;


    public String getCaptchaType() {
        return captchaType;
    }

    /**
     * 设置验证码类型
     * @param captchaType 验证码类型
     */
    public void setCaptchaType(String captchaType) {
        ChenConfig.captchaType = captchaType;
    }

    public static boolean isAddressEnabled()
    {
        return addressEnabled;
    }


    @Override
    public String toString() {
        return "ChenConfig{captchaType='" + captchaType + "'}";
    }
}
